<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>曙光培训考试系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script src="${path }/mobile/js/jquery-3.1.0.min.js"></script>
	 <script type="text/javascript">
   	 $(document).ready(function () {
	        var pcOrMobile = "";
	         //平台、设备和操作系统
	        var system = {
	            win: false,
	            mac: false,
	            xll: false
	        };
	        //检测平台
	        var p = navigator.platform;
	        system.win = p.indexOf("Win") == 0;
	        system.mac = p.indexOf("Mac") == 0;
	        system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
	        //跳转语句
	        if (system.win || system.mac || system.xll) {//转向后台登陆页面
	            pcOrMobile="pc";
	        } else {
	            pcOrMobile="mobile";
	        }
	      if(pcOrMobile=="pc"){
	    	  location.href = "pc/page/login.html";
	      } else if (pcOrMobile="mobile") {
	    	  location.href = "mobile/page/login.html";
	      }
	    });
   	 </script>
  <body>
   
  </body>
</html>
